# '''
# @File    :   ReadDTCInfomation.py
# @Time    :   2025/3/14 13:31:28
# @Author  :   YangLiang
# @Version :   1.0
# @Contact :   yangliang@chengtech.com
# @License :   (C)Copyright 2022-2025
# @Desc    :   None
# '''

# # here put the import lib
# from gettext import find
# from pytest_assume.plugin import assume

# import pytest
# import logging
# import time
# import requests
# from sympy import I
# # from sympy import assuming
# from commDriver.TS_CAN import *
# import allure
# import sys
# from collections.abc import Iterable

# from sqlalchemy import false
# sys.dont_write_bytecode = True
# import Set_up


# class Test_ReadDTCInfomation_phy(object):

#     @allure.severity('normal')
#     @allure.story('Test read dtc information service 0x19')
#     @allure.description('Test read dtc information service 0x19 in default session with physical addressing')
    
#     def test_Service_0x19_Protocol_TC000375_default_Phy(self, action, Driver):
#         iStep = 1
#         iStep,uds_resp, size = Driver['CAN'].checkReqResp(Driver, '10 01', '50 01 00 32 00 C8', 0, iStep, False, 'UDS', 'noClearFault')
#         iStep,uds_resp, size = Driver['CAN'].checkReqResp(Driver, '19 01 09', '59 01 09 00', 0, iStep, False, 'UDS', 'noClearFault')
#         with allure.step(f'Step{iStep}: check response length'):
#             with assume: assert size == 6 

#         iStep,uds_resp, size = Driver['CAN'].checkReqResp(Driver, '19 02 09', '59 02 09', 0, iStep, False, 'UDS', 'noClearFault')


# class Test_ReadDTCInfomation_Func(object):

#     @allure.severity('normal')
#     @allure.story('Test read dtc information service 0x19')
#     @allure.description('Test read dtc information service 0x19 in default session with functional addressing')
    
#     def test_Service_0x19_Protocol_TC000375_default_Fun(self, action, Driver):
#         iStep = 1
#         iStep,uds_resp, size = Driver['CAN'].checkReqResp(Driver, '22 F1 7E', '62 F1 7E', 0, iStep, False, 'UDSFun', 'noClearFault')
#         # iStep,uds_resp, size = Driver['CAN'].checkReqResp(Driver, '19 01 01', '59 01', 0, iStep, False, 'UDSFun', 'noClearFault')